package com.xea.model;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 在线留言
 * @author Administrator
 *
 */
public class Online implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1804620362204702529L;
	
	private int id;
	/**
	 * 姓名
	 */
	private String name;
	/**
	 * 电话
	 */
	private String tel;
	/**
	 * e-mail
	 */
	private String email;
	/**
	 * 内容
	 */
	private String content;
	/**
	 * 留言时间
	 */
	private Date createDate;
	/**
	 * msn
	 */
	private String msn;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String  getCreateDate() {
		return new SimpleDateFormat("yyyy-MM-dd").format(createDate);
	}
	public void setCreateDate(String  createDate) throws ParseException {
		this.createDate =new SimpleDateFormat("yyyy-MM-dd").parse(createDate);
	}
	
	public String getMsn() {
		return msn;
	}
	public void setMsn(String msn) {
		this.msn = msn;
	}
	public Online() {
		super();
	}
	public Online(String name, String tel, String email, String content,
			Date createDate, String msn) {
		super();
		this.name = name;
		this.tel = tel;
		this.email = email;
		this.content = content;
		this.createDate = createDate;
		this.msn = msn;
	}
	
	
}
